package openadmin.dao.annotations.collection;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <desc> Set of attributes to display in a Collection view
 * <example> @CollectionView (	name="myName" , 
 * 								members="id, description, population",
 * 								orderBy="description,id",
 * 								formView="myFormView")
 * 
 * @author edu
 *
 */

@Retention(value=RetentionPolicy.RUNTIME)
@Target(value={ElementType.FIELD})

public @interface CollectionView {
	public String name() 		default "";		// Name of the view
	public String members() 	default "";		// Name of the members separated by commas
	public String orderBy()     default "";		// Set of fields separated by commas
	public String formView() 	default "";		// Form View that is applied
}